Image super-resolution reconstruction method, mobile terminal, and computer-readable storage medium

ABSTRACT

The disclosure provides an image super-resolution reconstruction method, a mobile terminal, and a computer-readable storage medium. The method includes: obtaining continuous N first YUV images; extracting N luma images and N chroma images from the N first YUV images; performing sequentially sharpness estimation, image registration, and image reconstruction based on a neural network on the N luma images; performing image reconstruction on the N chroma images; and fusing the chroma image obtained after reconstruction and the luma image obtained after reconstructions to obtain the target YUV image that has a higher resolution than the N first YUV images.

CROSS-REFERENCE TO RELATED APPLICATION(S)

This application claims priority to Chinese Patent Application No. 201911066747.6, filed on Nov. 4, 2019, the entire contents of which are incorporated herein by reference.

TECHNICAL FIELD

The disclosure belongs to a field of image processing technologies, and more particularly, to an image super-resolution reconstruction method, a mobile terminal, and a computer-readable storage medium.

BACKGROUND

Due to a sub-pixel displacement existing during a process of photographing a plurality of images, the plurality of images may include higher resolution information. Based on this, a super-resolution reconstruction method based on the plurality of images has been proposed. Existing super-resolution reconstruction methods generally include two main steps: image registration and fusion reconstruction. The quality of image registration determines whether the higher resolution information included in the plurality of images is utilized accurately in operations of subsequent fusion reconstruction. However, since image registration is often computationally intensive and highly susceptible to motion modes (such as trembling of hands) and image quality, registration errors are inevitable. As registration errors will be converted into reconstruction errors, the quality of the reconstructed image finally obtained is influenced adversely.

SUMMARY

A first aspect of the disclosure provides an image super-resolution reconstruction method. The method includes: obtaining continuous N first YUV images, N being a positive integer greater than 1; extracting a luma image and a chroma image corresponding to each of the N first YUV images to obtain N luma images and N chroma images; selecting, based on sharpness of each of the N luma images, a reference luma image from the N luma images; performing image registration on remaining images in the N luma images except the reference luma image and the reference luma image to obtain an offset of each of the remaining images relative to the reference luma image; fusing, based on the offset of each of the remaining images relative to the reference luma image, the N luma images through a trained neural network to obtain a target luma image, the target luma image having a higher resolution than the first YUV images; performing, based on a reference chroma frame, interpolation processing on the N chroma images to obtain a target chroma image, the reference chroma frame being a chroma image associated with the reference luma image in the N chroma images, and the target chroma image having a higher resolution than the first YUV images; and synthesizing the target luma image and the target chroma image to obtain a target YUV image.

A second aspect of the disclosure provides a mobile terminal. The mobile terminal includes a storage device, and a processor. The storage device is configured to store a computer program. The processor is configured to execute the computer program, to carry out the method as described in the first aspect are implemented.

A third aspect of the disclosure provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, actions of the method as described in the first aspect are implemented.

BRIEF DESCRIPTION OF DRAWINGS

In order to clearly illustrate technical solutions of embodiments of the disclosure, a brief description to drawings used in the description of embodiments or related art is given below. Obviously, the drawings in the following descriptions are only part embodiments of the disclosure, and for those skilled in the art, other drawings can be obtained according to these drawings without creative labor.

FIG. 1 is a flowchart of an implementation process of an image super-resolution reconstruction method according to an embodiment of the disclosure.

FIG. 2 is a schematic diagram of a 3D convolutional neural network adopted in an image super-resolution reconstruction method according to an embodiment of the disclosure.

FIG. 3 is a schematic diagram of a bi-cubic interpolation operation in an image super-resolution reconstruction method according to an embodiment of the disclosure.

FIG. 4 is a block diagram of an image super-resolution reconstruction apparatus according to an embodiment of the disclosure.

FIG. 5 is a schematic diagram of a mobile terminal according to an embodiment of the disclosure.

DETAILED DESCRIPTION

In the following description, for the purpose of illustration rather than limitation, details such as specific system structures and technologies are proposed for a thorough understanding of embodiments of the disclosure. However, those skilled in the art should understand that the disclosure may also be implemented in other embodiments without the above details. In other cases, detailed descriptions of well-known systems, apparatuses, circuits, and methods are omitted to prevent unnecessary details from hindering the description of the disclosure. The following description will be made with reference to specific embodiments to explain the technical solutions of the disclosure.

The following describes an image super-resolution reconstruction method according to an embodiment of the disclosure. With reference to FIG. 1, the image super-resolution reconstruction method may include the following.

At block 101, continuous N first YUV (Luma and Chroma) images are obtained. The first YUV images may have a low resolution. N is a positive integer greater than 1.

That is, a plurality of continuous first YUV images is obtained. In detail, the continuous N first YUV images may be collected by a camera applicable to a mobile terminal after a burst shooting (or continuous shooting) instruction input by a user is received. The burst shooting instruction may be a single-click input or a long press input. Or, the continuous N first YUV images may be intercepted by the mobile terminal from a video stream. The disclosure is not limited in this regard.

It should be noted that if the continuous N images that are not in a YUV format are obtained by the mobile terminal, it may convert the continuous N images obtained into the continuous N images in the YUV format. The image format conversion is well-known and will not be repeated herein.

At block 102, a luma image and a chroma image corresponding to each of the N first YUV images are extracted to obtain N luma images and N chroma images.

In the embodiment of the disclosure, since the YUV image includes luma information and chroma information, and human eyes perceive the luma information better than the chroma information, luma information and chroma information of each of the N first YUV images may be extracted to obtain N luma images and N chroma images. In detail, the luma image corresponding to each of the N first YUV images is extracted through a preset Y (represents luma) channel, and the chroma image corresponding to each of the N first YUV images is extracted through a preset UV (represents chroma) channel.

At block 103, a reference luma image is selected, based on sharpness of each of the N luma images, from the N luma images.

In the embodiment of the disclosure, sharpness of the luma image may be evaluated based on local luma features of the luma image to calculate a sharpness value of each of the N luma images. The luma image with the highest sharpness value is determined as the reference luma image in the above N luma images. In detail, actions of calculating the sharpness value of each of the N luma images may include the following.

A1, a luma image to be calculated is segmented into two or more sub-image areas.

According to the embodiment of the disclosure, the same process is used to calculate the sharpness value of each of the N luma images, so any one of the above-mentioned N luma images is selected as the luma image to be calculated, and the calculation of the sharpness value is explained based on the luma image to be calculated. In order to calculate the sharpness value of the luma image to be calculated through local luma features, the luma image to be calculated may be segmented into two or more sub-image areas. In detail, the luma image to be calculated may be segmented into k₁*k₂ sub-image areas, and an area of each of the k₁*k₂ sub-image areas is equal. In other words, the luma image is segmented into a sub-image area matrix with k₁ columns and k₂ rows, where k₁ and k₂ are both positive integers.

A2, a luma value of each pixel in the luma image to be calculated is obtained.

The luma value of each pixel in the luma image may be Y of the corresponding pixel in the YUV image. If the YUV image is obtained, the luma value of each pixel in the luma image may be obtained from the YUV image directly. If the image in the RGB (Red-Green-Blue) format is obtained, the luma value of each pixel in the luma image may be obtained by a formula of Y=0.299*R+0.587*G+0.114*B.

The luma value of each pixel in the luma image to be calculated may be obtained first, and then the luma image to be calculated may be segmented into two or more sub-image areas. Alternatively, the luma image to be calculated may be segmented into two or more sub-image areas first, and then the luma value of each pixel in each sub-image area is obtained. The execution order of the above actions A1 and A2 is not limited here.

A3, a maximum luma value and a minimum luma value in each of the sub-image areas are determined based on the luma value of each pixel.

By traversing the luma value of each pixel in each sub-image area, the maximum luma value and the minimum luma value in each sub-image area may be found. In the above manner, the maximum luma value and the minimum luma value in each sub-image area are finally determined.

A4, sharpness estimation is performed, based on the maximum luma value and the minimum luma value in each of the sub-image areas, on the luma image to be calculated through a preset sharpness reference model to obtain a sharpness value of the luma image to be calculated.

The formula used to perform the sharpness estimation on the luma image to be calculated through the preset sharpness reference model is as follows:

Sharpness = EME(I) ${EME} = {\frac{2}{k_{1}k_{2}}{\sum\limits_{l = 1}^{k_{1}}{\sum\limits_{k = 1}^{k_{2}}{l{g\left( \frac{I_{\max,k,l}}{I_{\min,k,l}} \right)}}}}}$

In the above formula, Sharpness represents the calculated sharpness value of the luma image to be calculated; k₁ and k₂, as explained in action A1, represent that the luma image to be calculated is segmented into k₁*k₂ sub-image areas; EME represents the sharpness reference model; and I represents luma, I_(max, k, l) represents the maximum luma value in k*1 sub-image area, and I_(min, k, l) represents the minimum luma value in the k*1 sub-image area. Through the above formula, the sharpness value of the luma image to be calculated may be obtained. The sharpness value of each of the N luma images is calculated in the same process, and the luma image with the highest sharpness value is determined as the reference luma image.

At block 104, image registration is performed on remaining images in the N luma images except the reference luma image and the reference luma image to obtain an offset of each of the remaining images relative to the reference luma image.

In embodiments of the disclosure, after the reference luma image is determined, image registration may be performed on remaining images based on the reference luma image to obtain the offset of each of the remaining images relative to the reference luma image. In detail, the above action in block 104 includes the following.

B1, feature point detection is performed on a luma image to be matched and the reference luma image separately.

Since embodiments of the disclosure adopt the same process for the image registration performed on each of the remaining images, any one of the remaining luma images of the above N luma image is selected as the luma image to be matched, and the image registration of the luma image to be matched and the reference luma image is described based on the luma image to be matched. First, the feature point detection is performed on the luma image to be matched and the reference luma image separately based on a preset scale-invariant feature transform (SIFT) algorithm. The essence of the SIFT algorithm is to find feature points on different scale spaces, to calculate, for example, sizes, directions and scale information, of the feature points, and to use the above information to describe the feature points. It should be noted that the feature points found by the SIFT algorithm are less affected by factors such as illumination, affine transformation, or noise, that is, the feature points found by the SIFT algorithm are relatively stable, which may ensure the accuracy of feature point matching. Of course, the feature points may also be detected and described based on other feature point detection algorithms. For example, an algorithm such as a speeded-up robust feature (SURF) detection algorithm or a corner point feature detection algorithm may be used, which is not limited here.

B2, a Euclidean distance between each feature point of the luma image to be matched and a corresponding feature point of the reference luma image is calculated.

After finding the feature points of the luma image to be matched and corresponding feature points in the reference luma image, it is necessary to calculate the Euclidean distance between each feature point of the luma image to be matched and the corresponding feature point of the reference luma image. In detail, for the luma image to be matched, a gradient histogram of each feature point is established based on other pixels included in an area where each feature point is located; and for the reference luma image, a gradient histogram of the corresponding feature point is established based on other pixels included in an area where each feature point is located. And then, a feature vector of each feature point of the luma image to be matched is generated based on the gradient histogram of each feature point, and a feature vector of the corresponding feature point is generated based on the gradient histogram of the corresponding feature point. For example, the feature vector is represented by

$\overset{1}{x} = {x\left( {x_{1},x_{2},\ldots\mspace{14mu},x_{n}} \right)}$

for the luma image to be matched. The feature vector is a description of one feature point. Finally, the Euclidean distance between each feature point of the luma image to be matched and the corresponding feature point of the reference luma image is calculated based on the feature vectors of a pair of feature points. In embodiments of the disclosure, assuming that the luma image to be matched is Y_(K) (which refers to the K^(th) luma image) and the reference luma image is Y₀, feature points of Y₀ and Y_(K) are detected respectively, and represented as two sets of feature points Y₀: {right arrow over (x)}_(Y) ₀₁ , {right arrow over (x)}_(Y) ₀₂ , . . . {right arrow over (x)}_(Y) _(0n) and Y_(K): {right arrow over (x)}_(Y) _(K1) , {right arrow over (x)}_(Y) _(K2) , . . . {right arrow over (x)}_(Y) _(KN) . The calculation formula of the above Euclidean distance may be expressed as

$d_{PQ} = {{{{\overset{\rightarrow}{x}}_{Y_{0P}} - {\overset{\rightarrow}{x}}_{Y_{KQ}}}}_{2}.}$

B3, a homography matrix of the luma image to be matched to the reference luma image is solved, based on the Euclidean distance between each feature point of the luma image to be matched and the corresponding feature point of the reference luma image, to obtain an offset of the luma image to be matched to the reference luma image.

When four or more pairs of feature points that are closest to each other in Y₀ and Y_(k) are found, the four or more pairs of feature points may be determined as corresponding feature points. Based on this, coefficients of the homography matrix H_(K) may be solved by a direct linear transformation (DLT) here. In detail, the homography matrix H_(K) of the luma image Y_(k) to the reference luma image Y₀ is expressed as follows:

$\begin{bmatrix} x^{\backprime} \\ y^{\backprime} \\ w^{\backprime} \end{bmatrix} = {\begin{bmatrix} h_{1} & h_{2} & h_{3} \\ h_{4} & h_{5} & h_{6} \\ h_{7} & h_{8} & h_{9} \end{bmatrix}\begin{bmatrix} x \\ y \\ w \end{bmatrix}}$

where, (x, y) represents coordinates of any point in Y_(K), the 3×3 matrix represents the homography matrix H_(K), and the transformed point (x′, y′) represents coordinates of the above (x, y) after the above (x, y) is registered to the reference luma image Y₀, and w′=w=1. Therefore, a displacement [m_(vxk), m_(vyk)] of each point in Y_(K) relative to Y₀ may be calculated based on the homography matrix H_(K) described above, and finally a two-channel offset vector graph of the same size as Y₀ and Y_(K) may be formed. After the above feature point matching operation, it is assumed that Y_(K) has coordinates of feature points being (x₁, y₁), (x₂, y₂), . . . , (x_(t), y_(t)), and Y₀ has coordinates of feature points being (x₁′, y₁′), (x₂′, y₂′), . . . , (x_(t)′, y_(t)′), the homography matrix is applied to the pairs of feature points, and the formula of the homography matrix H_(K) may be rewritten as the following formula:

${\begin{bmatrix} {- x_{1}} & {- y_{1}} & {- 1} & 0 & 0 & 0 & {x_{1}x_{1}^{\prime}} & {y_{1}x_{1}^{\prime}} & x_{1}^{\prime} \\ 0 & 0 & 0 & {- x_{1}} & {- y_{1}} & {- 1} & {x_{1}y_{1}^{\prime}} & {y_{1}y_{1}^{\prime}} & y_{1}^{\prime} \\ {- x_{2}} & {- y_{2}} & {- 1} & 0 & 0 & 0 & {x_{2}x_{2}^{\prime}} & {y_{2}x_{2}^{\prime}} & x_{2}^{\prime} \\ 0 & 0 & 0 & {- x_{2}} & {- y_{2}} & {- 1} & {x_{2}y_{2}^{\prime}} & {y_{2}y_{2}^{\prime}} & y_{2}^{\prime} \\ M & M & M & M & M & M & M & M & M \end{bmatrix}\begin{bmatrix} h_{1} \\ h_{2} \\ M \\ h_{9} \end{bmatrix}} = {{0\mspace{14mu}{AH}_{K}} = 0}$

where, M in the above matrix represents vertical ellipsis in the matrix, and the above matrix A is a matrix with a number of rows twice the number of the corresponding pairs of feature points. Coefficients of the equation of the above pairs of feature points are stacked into a matrix, and then a singular value decomposition (SVD) algorithm may be used to find the least squares solution of the homography matrix H_(k), and then an offset [m_(vxk), m_(vyk)] of each point in the luma image Y_(K) with respect to Y₀ may be calculated.

Of course, the offset of each of the remaining images relative to the above-mentioned reference luma image may also be obtained by other manners. For example, an optical flow vector from each point in the luma image Y_(K) to the reference image Y₀ may be solved based on brightness information around each point in any two adjacent images. And then, an offset [m_(vxk), m_(vyk)] of each point in the luma image Y_(K) relative to Y₀ may be calculated based on the optical flow vector of each point. The calculation process of the above offset is not limited here.

At block 105, the N luma images are fused, based on the offset of each of the remaining images relative to the reference luma image, through a trained neural network to obtain a target luma image, the target luma image having a higher resolution than the first YUV images.

In embodiments of the disclosure, the neural network may be a 3D convolutional neural network or other types of neural networks, which is not limited herein. For example, the neural network is the 3D convolutional neural network. In order to better illustrate the 3D convolutional neural network according to embodiments of the disclosure, the 3D convolutional neural network is introduced from three aspects: input data, network structure and loss function.

The input data of the 3D convolutional neural network is the N luma images. In detail, the input data includes four dimensions [c, d, w, h], where w represents a width of the N luma images, h represents a height of the N luma images, c represents a number of channels of the N luma images, and d represents image depth of the N luma images. It should be noted that the number of channels is a preset value set by research and development personnel when designing the 3D convolutional neural network. According to embodiments of the disclosure, the N luma images may be input to the 3D convolutional neural network. Each of the N luma images includes three channels, namely luma Y, and the offset mv_(x) and mv_(y) of the luma image relative to the reference luma image. The image depth refers to the number N of the input luma images. For most of the super-resolution neural networks based on a single image, such as super-resolution convolutional neural network (SRCNN) and photo-realistic single image super-resolution using a generative adversarial network (SRGAN), which are currently widely used, as the input data are the single image, the dimension of image depth d is missing compared with the input data of the 3D convolutional neural network according to embodiments of the disclosure. As the super-resolution reconstruction based on a single image cannot use sub-pixel displacements between a plurality of images, a reconstructed image obtained based on a single image is blurred (such as SRCNN), or a reconstructed image will produce some false details (such as SRGAN).

The network structure of the 3D convolutional neural network may include a feature extract layer, a feature transform layer, an upsample layer, and a fusion layer. With reference to FIG. 2, the following describes the work of each of the above layers to illustrate the workflow of the above 3D convolutional neural network.

The work content of the feature extract layer is to extract linear features of the luma images through a large convolution kernel. The linear features may include gradient, luma, size relationship, etc., which are not limited here. Generally, there are two above linear extract layers. In embodiments of the disclosure, the two layers are referred to as a feature extract layer A and a feature extract layer B. Compared with the input luma images, images with the linear features, output by the above feature extract layer, have the same image depth, the same image size, and an increasing number of channels. In detail, take the luma images that are input to the 3D convolutional neural network being eight frames as an example. The following table 1 illustrates parameters of a network structure of the above feature extract layers.

TABLE 1 Size of the con- Input Output Input Output volution depth depth channels channels Scale Name kernels (d_in) (d_out) (c_in) (c_out) factor Feature 5 × 5 8 8 3 32 ×1 extract layer A Feature 5 × 5 8 8 32 64 ×1 extract layer B

The work content of the feature transform layer is to perform nonlinear combinations on the linear features extracted by the feature extract layer through a small convolution kernel to obtain nonlinear features. The more the number of the above feature transform layers, the higher the degree of nonlinearity of the transformed features, the stronger the ability to express complex image structures, and the more the beneficial to the authenticity of image reconstruction. Compared with the input images with the linear features (that is, the images output by the feature extract layer), the images with the nonlinear features, output by the above feature transform layer, have the same image depth, the same image size, and the same number of channels. The work process is repeated M times, and M is the number of the feature transform layers. It should be noted that the value of M needs to be 2 to the power of m, and m is a positive integer. In embodiments of the disclosure, for example, M=16. The following Table 2 illustrates parameters of a network structure of the above feature transform layer.

TABLE 2 Size of the con- Input Output Input Output volution depth depth channels channels Scale Name kernel (d_in) (d_out) (c_in) (c_out) factor Feature 3 × 3 8 8 64 64 ×1 transform layer*M

The upsample layer is not a convolutional layer, and the work content of the upsample layer is to upsample the images output by the above feature transform layer to a desired preset ratio through interpolation processing, such as a ratio of ×2. The above-mentioned interpolation processing may be bi-cubic interpolation processing, bilinear interpolation processing or other types of interpolation processing, which is not limited herein. The fusion layer follows the above-mentioned upsample layer closely, and the work content of the fusion layer is to fuse the plurality of images upsampled by the upsample layer into one super-resolution image and to output the one super-resolution image. Optionally, the upsample layer may also upsample the images output by the feature transform layer to the desired preset ratio in other ways. For example, a deconvolution kernel or pixel-shuffle may be used to keep the size of the images unchanged, and to upsample the number of channels to the required preset ratio. The obtained images of a plurality of channels may be combined into one image of channels to achieve upsampling of the images.

In embodiments of the disclosure, a preset ratio of ×2 is taken as an example. The following Table 3 illustrates parameters of network structures of the upsample layer and the fusion layer.

TABLE 3 Size of the con- Input Output Input Output volution depth depth channels channels Scale Name kernel (d_in) (d_out) (c_in) (c_out) factor Upsample — 8 8 64 64 ×2 layer Fusion 5 × 5 8 1 64 1 ×1 layer

It may be seen from the above example that the 3D convolutional neural network may fuse the input low-resolution N luma images into one super-resolution image (that is, a high-resolution image), and may upsample a size of an image based on user needs, so that the size of the super-resolution image is several times the size of the input luma images. It should be noted that unit structures of each layer in the above 3D convolutional neural network may use a combination of convolution kernels, rather than a single convolution kernel. For example, the above transform layer may use a single 3×3 convolution kernel, or a series combination of a 1×1 convolution kernel and a 3×3 convolution kernel, which is not limited here in this regard.

In addition to input data and network structures of the 3D convolutional neural network, loss functions of the 3D convolutional neural network are also the key to construct the 3D convolutional neural network. Generally, the convolutional neural networks with super-resolution reconstruction performed based on single image, such as SRCNN and SRGAN mentioned above, may adopt l2 loss and GAN loss, or l1 loss and GAN loss in the choice of loss functions. l1 loss/l2 loss is used for fidelity and smoothness of images; and GAN loss is used to generate details that do not exist in a single image. Since the plurality of images includes information of sub-pixel displacement, in embodiments of the disclosure, it is not necessary to use GAN loss to produce details. Instead, a loss function that may ensure smoothness of an image while retaining details and sharp edges is needed. Consequently, the multi-scale structure similarity (MS-SSIM) adopted by the 3D convolutional neural network provided in embodiments of the disclosure is the basis of the loss function.

First, in the training process of the above 3D convolutional neural network, the structure similarity (SSIM) between a predicted super-resolution (SR) image and a real high-resolution (HR) image is calculated through the following formula:

${{SSIM}(p)} = {{\frac{{2\mu_{x}\mu_{y}} + C_{1}}{\mu_{x}^{2} + \mu_{y}^{2} + C_{1}} \cdot \frac{{2\sigma_{xy}} + C_{2}}{\sigma_{x}^{2} + \sigma_{y}^{2} + C_{2}}} = {{l(p)} \cdot {{cs}(p)}}}$

where p represents a pixel in an image; μ_(x) represents an average luma value of the SR image; μ_(y) represents an average luma value of the HR image; σ_(x) represents a luma variance of the SR image; σ_(y) represents a luma variance of the HR image; σ_(xy) represents a luma covariance between the SR image and the HR image; and C₁ and C₂ are anti-zeroing terms. Preferably, C₁=(0.01*255)², and C₂=(0.03*255)². In this manner, l(p) and cs(p) may be obtained, where l(p) represents a luma contrast factor, and cs(p) represents a contrast-ratio contrast factor.

Consequently, the SSIM at a plurality of scales may be calculated based on the above-mentioned SSIM. That is, MS-SSIM may be calculated by the following formula:

${MS} - {{SSIM}\mspace{11mu}{(p) = {{l_{M}(p)}{\prod\limits_{j = 1}^{M}{c{s_{j}(p)}}}}}}$

where l_(M)(p) refers to the luma contrast factor at the maximum scale;

$\prod\limits_{j = 1}^{M}{{cs}_{j}(p)}$

represents a product of contrast factors at different scales. Different scales refer to zooming out two images (the SR image and the HR image) participating in a comparison in different proportions. The maximum scale refers to the size of original images (that is, the SR image and the HR image).

Finally, based on the above calculation formula of the MS-SSIM, the larger the MS-SSIM, the more similar the two images (that is, the SR image and the HR image) participating in the comparison. Since the training of the 3D convolutional neural network is to find a position with the lowest loss, the loss function of the 3D convolutional neural network is: L^(MS-SSIM)(p)=1−MS-SSIM(p). Subtracting the MS-SSIM from 1 as the loss of the 3D convolutional neural network enables that in the training of the 3D convolutional neural network, the loss is lower, i.e., the higher the MS-SSIM, and the more similar the SR image predicted by the 3D convolutional neural network to the real HR image. When the above loss no longer drops, the training of the above 3D convolutional neural network may be ended, thus a trained 3D convolutional neural network is obtained. During the training of the above 3D convolutional neural network, the loss function used is established on the basis of the MS-SSIM, so the trained 3D convolutional neural network finally obtained may not only ensure the smoothness of images, but also effectively reconstruct the sharpness of the images at high-intensity edges and texture features in areas with rich details. Optionally, as another possible implementation, the loss function may also not use the MS-SSIM, but directly use single-scale SSIM loss, l1 loss, l2 loss, or GAN loss, which is not limited herein.

At block 106, interpolation processing is performed, based on a reference chroma frame, on the N chroma images to obtain a target chroma image, the target chroma image having a higher resolution than the first YUV images.

In embodiments of the disclosure, since human eyes are not particularly sensitive to the chroma information, there is no need to perform complex reconstruction on the chroma image. Based on this, after determining the reference luma image based on the above action at block 103, a chroma image associated with the reference luma image may be found in the N chroma images, and the chroma image found may be determined as the reference chroma frame. In detail, assuming that the chroma image and the luma image of the YUV image are extracted based on this original YUV image, the chroma image and the luma image are considered to be associated since the chroma image and the luma image belong to the same YUV image. After determining the reference chroma frame, the interpolation processing is performed, based on the reference chroma frame, on the N chroma images to obtain the high-resolution target chroma image. The interpolation processing may be bi-cubic interpolation processing, bilinear interpolation processing, or other types of interpolation processing, which are not limited herein. It should be noted that the size of the target chroma image obtained here is the same as the size of the target luma image described above. Considering that the upsample layer of the 3D convolutional neural network will upsample images at the preset ratio, an upsampling ratio of the interpolation processing in this action needs to be the synchronized with the preset ratio of upsampling adopted by the upsample layer of the 3D convolutional neural network.

In detail, the bi-cubic interpolation is a method for determining weights of sampling points to a point to be interpolated based on distances between the point to be interpolated and the sampling points. The operation flow of the bi-cubic interpolation will be described below in combination with FIG. 3. For example, the point to be interpolated is P, sixteen sampling points Z₁₁ to Z₄₄ that are closest to the point P are selected. And then, rows are processed before columns. First, [Z₁₁, Z₁₂, Z₁₃, Z₁₄] are used to interpolate R₁, [Z₂₁, Z₂₂, Z₂₃, Z₂₄] are used to interpolate R₂, until R₃ and R₄ are interpolated in the same manner. And then, [R₁, R₂, R₃, R₄] are used to interpolate P. The interpolation process takes the pixel value of point P as an example, and the following formula is used to calculate the point P:

$P = {\frac{1}{\sum\limits_{t = 1}^{4}{W\left( {d\left( {P,R_{t}} \right)} \right)}}{\sum\limits_{t = 1}^{4}{{W\left( {d\left( {P,R_{t}} \right)} \right)}*R_{t}}}}$

where, d (P, R_(t)) represents the Euclidean distance from P to R_(t) {t=1, 2, 3, 4}, and W(x) represents a weight calculated based on a distance x. In detail, the calculation formula of the above weight is as follows:

${W(x)} = \left\{ \begin{matrix} {{{\left( {a + 2} \right){x}^{3}} - {\left( {a + 3} \right){x}^{2}} + 1}\ } & {{{for}\mspace{9mu}{x}} \leq 1} \\ {{{a{x}^{3}} - {5a{x}^{2}} + {8a{x}} - {4a}}\ } & {{{for}\mspace{14mu} 1} < {x} < 2} \\ {0\ } & {otherwise} \end{matrix} \right.$

where, the value of a is preferably −0.5.

At block 107, the target luma image and the target chroma image are synthesized to obtain a target YUV image.

In embodiments of the disclosure, after obtaining the target luma image and the target chroma image of the same size, the target luma image and the target chroma image may be synthesized into one YUV image, that is, one high-resolution target YUV image may be obtained after reconstructing continuous N first YUV images.

It may be seen from the above that according to embodiments of the disclosure, the continuous N first YUV images are extracted through the Y channel and the UV channel to obtain N chroma images and N luma images. Since human eyes are sensitive to the luma information, sharpness estimation, image matching, and image reconstruction based on a neural network are sequentially performed on the N luma images so as to obtain a high-resolution target luma image. Since human eyes are insensitive to the chroma information, a simple image reconstruction is performed directly on the N chroma images through an interpolation algorithm to obtain a high-resolution target chroma image. The high-resolution target YUV image is finally obtained based on the target luma image and the target chroma image. The above process uses the neural network as the main body of image reconstruction, which may effectively against ghosting and blurred textures brought by errors of image registration and other image artifacts, ensuring the quality of reconstructed images. In addition, the robustness of the neural network may enable a mobile terminal to obtain a reliable effect on image super-resolution reconstruction in different scenarios such as trembling and high-speed motion of the mobile terminal.

It should be understood that sequence numbers of actions in the above embodiments does not mean an order of execution. The order of execution of each process should be determined by functions and internal logic of each process, and should not constitute any limitation on implementations of embodiments of the disclosure.

Embodiments of the disclosure provide an image super-resolution reconstruction apparatus corresponding to the image super-resolution reconstruction method as described above. The following describes the image super-resolution reconstruction apparatus according to embodiments of the disclosure. With reference to FIG. 4, an image super-resolution reconstruction apparatus 4 includes an image obtaining unit 401, an image extraction unit 402, a reference luma image determination unit 403, a luma image registration unit 404, a luma image reconstruction unit 405, a chroma image reconstruction unit 406, and an image fusion unit 407.

The image obtaining unit 401 is configured to obtain continuous N first YUV images. N is a positive integer greater than 1.

The image extraction unit 402 is configured to extract a luma image and a chroma image corresponding to each of the N first YUV images to obtain N luma images and N chroma images.

The reference luma image determination unit 403 is configured to select, based on sharpness of each of the N luma images, a reference luma image from the N luma images.

The luma image registration unit 404 is configured to perform image registration on remaining images in the N luma images except the reference luma image and the reference luma image to obtain an offset of each of the remaining images relative to the reference luma image.

The luma image reconstruction unit 405 is configured to fuse, based on the offset of each of the remaining images relative to the reference luma image, the N luma images through a trained neural network to obtain a target luma image, the target luma image having a higher resolution than the first YUV images.

The chroma image reconstruction unit 406 is configured to perform, based on a reference chroma frame, interpolation processing on the N chroma images to obtain a target chroma image, the reference chroma frame being a chroma image associated with the reference luma image in the N chroma images, and the target chroma image having a higher resolution than the first YUV images.

The image fusion unit 407 is configured to synthesize the target luma image and the target chroma image to obtain a target YUV image.

Optionally, the reference luma image determination unit 403 includes a sharpness value calculation subunit and a reference image determination subunit.

The sharpness value calculation subunit is configured to calculate a sharpness value of each of the N luma images.

The reference image determination subunit is configured to determine a luma image with the highest sharpness value as the reference luma image.

Optionally, the sharpness value calculation subunit includes an area division subunit, a luma value obtaining subunit, a luma value determination subunit, and a sharpness estimation subunit.

The area division subunit is configured to segment a luma image to be calculated, into two or more sub-image areas, the luma image to be calculated being any one of the N luma images.

The luma value obtaining subunit is configured to obtain a luma value of each pixel in the luma image to be calculated.

The luma value determination subunit is configured to determine a maximum luma value and a minimum luma value in each of the sub-image areas based on the luma value of each pixel.

The sharpness estimation subunit is configured to perform, based on the maximum luma value and the minimum luma value in each of the sub-image areas, sharpness estimation on the luma image to be calculated through a preset sharpness reference model to obtain a sharpness value of the luma image to be calculated.

Optionally, the luma image registration unit 404 includes a feature point detection subunit, a distance calculation subunit, and a homography matrix solving subunit.

The feature point detection subunit is configured to perform feature point detection on a luma image to be matched and the reference luma image separately, the luma image to be matched being any one of the remaining images.

The distance calculation subunit is configured to calculate a Euclidean distance between each feature point of the luma image to be matched and a corresponding feature point of the reference luma image.

The homography matrix solving subunit is configured to solve, based on the Euclidean distance between each feature point of the luma image to be matched and the corresponding feature point of the reference luma image, a homography matrix of the luma image to be matched to the reference luma image to obtain an offset of the luma image to be matched to the reference luma image.

Optionally, the feature point detection subunit is configured to perform the feature point detection on the luma image to be matched and the reference luma image separately based on a preset scale-invariant feature transform algorithm.

Optionally, the distance calculation subunit includes a gradient histogram establishing subunit, a feature vector establishing subunit, and a Euclidean distance calculation subunit.

The gradient histogram establishing subunit is configured to establish a gradient histogram of each feature point of the luma image to be matched, and a gradient histogram of the corresponding feature point of the reference luma image.

The feature vector establishing subunit is configured to generate a feature vector of each feature point of the luma image to be matched based on the gradient histogram of each feature point of the luma image to be matched, and a feature vector of the corresponding feature point of the reference luma image based on the gradient histogram of the corresponding feature point of the reference luma image.

The Euclidean distance calculation subunit is configured to calculate the Euclidean distance between each feature point of the luma image to be matched and the corresponding feature point of the reference luma image based on the feature vector of each feature point of the luma image to be matched and the feature vector of the corresponding feature point of the reference luma image.

Optionally, the neural network includes a feature extract layer, a feature transform layer, an upsample layer, and a fusion layer.

The feature extract layer is configured to extract linear features of each of the N luma images.

The feature transform layer is configured to convert the linear features of each of the N luma images to obtain non-linear features of each of the N luma images.

The upsample layer is configured to perform interpolation processing on an image output by the feature transform layer to upsample the image to a preset size.

The fusion layer is configured to fuse the image upsampled to obtain the high-resolution target luma image.

It may be seen from the above that according to embodiments of the disclosure, the continuous N first YUV images are extracted through the Y channel and the UV channel to obtain N chroma images and N luma images. Since human eyes are sensitive to the luma information, sharpness estimation, image matching, and image reconstruction based on a neural network are sequentially performed on the N luma images so as to obtain a high-resolution target luma image. Since human eyes are insensitive to the chroma information, a simple image reconstruction is performed directly on the N chroma images through an interpolation algorithm to obtain a high-resolution target chroma image. The high-resolution target YUV image is finally obtained based on the target luma image and the target chroma image. The above process uses the neural network as the main body of image reconstruction, which may effectively against ghosting and blurred textures brought by errors of image registration and other image artifacts, ensuring the quality of reconstructed images. In addition, the robustness of the neural network may enable a mobile terminal to obtain a reliable effect on image super-resolution reconstruction in different scenarios such as trembling and high-speed motion of the mobile terminal.

Embodiments of the disclosure further provide a mobile terminal. The mobile terminal may be a smart phone, a tablet computer, etc., which is not limited herein. Referring to FIG. 5, a mobile terminal 5 according to an embodiment of the disclosure includes a storage device 501, one or more processors 502 (FIG. 5 illustrates one processor), and a computer program stored on the storage device 501 and operable on the one or more processors 502. The storage device 501 is configured to store software programs and modules. The processor 502 executes various functional applications and data processing by running the software programs and units stored in the storage device 501 to obtain resources corresponding to the above preset events. In detail, the processor 502 implements the following actions by running the computer program stored in the storage device 501.

The actions include: obtaining continuous N first YUV images, N being a positive integer greater than 1; extracting a luma image and a chroma image corresponding to each of the N first YUV images to obtain N luma images and N chroma images; selecting, based on sharpness of each of the N luma images, a reference luma image from the N luma images; performing image registration on remaining images in the N luma images except the reference luma image and the reference luma image to obtain an offset of each of the remaining images relative to the reference luma image; fusing, based on the offset of each of the remaining images relative to the reference luma image, the N luma images through a trained neural network to obtain a target luma image, the target luma image having a higher resolution than the first YUV images; performing, based on a reference chroma frame, interpolation processing on the N chroma images to obtain a target chroma image, the reference chroma frame being a chroma image associated with the reference luma image in the N chroma images, and the target chroma image having a higher resolution than the first YUV images; and synthesizing the target luma image and the target chroma image to obtain a target YUV image.

Assuming that the above is a first possible implementation, in a second possible implementation provided on the basis of the first possible implementation, selecting, based on the sharpness of each of the N luma images, the reference luma image from the N luma images, includes: calculating a sharpness value of each of the N luma images; and determining a luma image with the highest sharpness value as the reference luma image.

In a third possible implementation provided on the basis of the second possible implementation, calculating the sharpness value of each of the N luma images includes: segmenting, a luma image to be calculated, into two or more sub-image areas, the luma image to be calculated being any one of the N luma images; obtaining a luma value of each pixel in the luma image to be calculated; determining a maximum luma value and a minimum luma value in each of the sub-image areas based on the luma value of each pixel; and performing, based on the maximum luma value and the minimum luma value in each of the sub-image areas, sharpness estimation on the luma image to be calculated through a preset sharpness reference model to obtain a sharpness value of the luma image to be calculated.

In a fourth possible implementation provided on the basis of the first possible implementation, performing the image registration on remaining images in the N luma images except the reference luma image and the reference luma image to obtain an offset of each of the remaining images relative to the reference luma image includes: performing feature point detection on a luma image to be matched and the reference luma image separately, the luma image to be matched being any one of the remaining images; calculating a Euclidean distance between each feature point of the luma image to be matched and a corresponding feature point of the reference luma image; and solving, based on the Euclidean distance between each feature point of the luma image to be matched and the corresponding feature point of the reference luma image, a homography matrix of the luma image to be matched to the reference luma image to obtain an offset of the luma image to be matched to the reference luma image.

In a fifth possible implementation provided on the basis of the fourth possible implementation, performing the feature point detection on the luma image to be matched and the reference luma image separately includes: performing the feature point detection on the luma image to be matched and the reference luma image separately based on a preset scale-invariant feature transform algorithm.

In a sixth possible implementation provided on the basis of the fourth possible implementation, calculating the Euclidean distance between each feature point of the luma image to be matched and the corresponding feature point of the reference luma image includes: establishing a gradient histogram of each feature point of the luma image to be matched, and a gradient histogram of the corresponding feature point of the reference luma image; generating a feature vector of each feature point of the luma image to be matched based on the gradient histogram of each feature point of the luma image to be matched, and a feature vector of the corresponding feature point of the reference luma image based on the gradient histogram of the corresponding feature point of the reference luma image; and calculating the Euclidean distance between each feature point of the luma image to be matched and the corresponding feature point of the reference luma image based on the feature vector of each feature point of the luma image to be matched and the feature vector of the corresponding feature point of the reference luma image.

In a seventh possible implementation provided on the basis of the first possible implementation, the neural network includes a feature extract layer, a feature transform layer, an upsample layer, and a fusion layer. The feature extract layer is configured to extract linear features of each of the N luma images. The feature transform layer is configured to convert the linear features of each of the N luma images to obtain non-linear features of each of the N luma images. The upsample layer is configured to perform interpolation processing on an image output by the feature transform layer to upsample the image to a preset size. The fusion layer is configured to fuse the image upsampled to obtain the high-resolution target luma image.

It should be understood that in embodiments of the disclosure, the processor 502 may be a central processing unit (CPU). The processor may also be other general-purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic device, a discrete gate or a transistor logic device, a discrete hardware component, and so on. The general-purpose processor may be a microprocessor, or the processor may be any conventional processor or the like.

The storage device 501 may include a read-only memory and a random-access memory, and provide instructions and data to the processor 502. Part or all of the storage device 501 may also include a non-volatile random-access memory. For example, the storage device 501 may also store type information of devices.

It may be seen from the above that according to embodiments of the disclosure, the continuous N first YUV images are extracted through the Y channel and the UV channel to obtain N chroma images and N luma images. Since human eyes are sensitive to the luma information, sharpness estimation, image matching, and image reconstruction based on a neural network are sequentially performed on the N luma images so as to obtain a high-resolution target luma image. Since human eyes are insensitive to the chroma information, a simple image reconstruction is performed directly on the N chroma images through an interpolation algorithm to obtain a high-resolution target chroma image. The high-resolution target YUV image is finally obtained based on the target luma image and the target chroma image. The above process uses the neural network as the main body of image reconstruction, which may effectively against ghosting and blurred textures brought by errors of image registration and other image artifacts, ensuring the quality of reconstructed images. In addition, the robustness of the neural network may enable a mobile terminal to obtain a reliable effect on image super-resolution reconstruction in different scenarios such as trembling and high-speed motion of the mobile terminal.

Those skilled in the art can clearly understand that, for convenience and conciseness of description, the above-mentioned divisions of functional units and modules are only used as examples for illustration. In practical applications, the above-mentioned functions may be allocated to different functional units and modules for completion, that is, the internal structure of the above system is segmented into different functional units or modules to implement all or part of the functions described above. The functional units and modules in embodiments may be integrated into one processing unit, each unit may exist alone physically, or two or more units may be integrated into one unit. The above integrated unit may be implemented in the form of hardware, or in the form of software functional units. In addition, specific names of each functional unit and module are only for the purpose of distinction, and are not used to limit the protection scope of the disclosure. For the specific working processes of the units and modules in the above system, reference may be made to corresponding processes in the foregoing method embodiments, and thus repeated description is omitted herein.

In above embodiments, descriptions of respective embodiments are emphasized differently, and parts that are not detailed in some embodiments can refer to relevant descriptions of other embodiments.

Those skilled in the art could be aware that, example units and algorithm steps described in combination with embodiments disclosed herein may be implemented by electronic hardware, or by a combination of computer software and electronic hardware. Whether these functions are executed by hardware or software is dependent on particular use and design constraints of the technical solutions. Professionals may adopt different methods for different particular uses to implement described functions, which should not be regarded as going beyond the scope of the disclosure.

In several embodiments provided by the disclosure, it should be understood that, the disclosed system and method may be implemented in other ways. For example, the system embodiments described above are merely illustrative. For example, the modules or units are merely segmented according to logic functions, and can be segmented in other ways in actual implementation. For example, a plurality of units or components may be combined or may be integrated into another system, or some features may be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection illustrated or discussed may be via some interfaces, or direct coupling or communication connection of devices or units may be in an electrical, mechanical, or other form.

The units described as separate parts may or may not be physically separated. Parts displayed as units may or may not be physical units, i.e., the parts may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve purposes of solutions of the embodiments.

When the above integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it may be stored in a computer-readable storage medium. Based on this understanding, the disclosure implements all or part of the processes in the method according to the above embodiments, and instructs relevant hardware to implement all or part of the processes in the method according to the above embodiments through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by a processor, steps of the foregoing method embodiments may be implemented. The computer program includes codes of the computer program. The codes of the computer program may be in a form of source codes, object codes, an executable file, some intermediate form, and so on. The computer-readable storage medium may include: any entity or apparatus capable of carrying the above-mentioned codes of the computer program, a recording medium, a USB flash disk, a mobile hard disk, a magnetic disk, an optical disk, a computer-readable memory, a read-only memory (ROM), a random access memory (RAM), a power line carrier signal, a telecommunication signal, a software distribution medium, and the like. It should be noted that the content included in the computer-readable storage medium can be appropriately added or deleted based on requirements of legislation and patent practice in jurisdictions. For example, in some jurisdictions, legislation and patent practice define that the computer-readable storage medium does not include a power line carrier signal or a telecommunication signal.

The above embodiments are only used to illustrate the technical solutions of the disclosure, rather than to limit the disclosure. Although the disclosure has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications of the technical solutions recorded by the foregoing embodiments are possible, or equivalent replacements of some of the technical features of the technical solutions may be made. The modifications or replacements do not deviate essences of corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the disclosure, and should be included in the protection scope of the disclosure 

What is claimed is:
 1. A method for image super-resolution reconstruction, comprising: obtaining continuous N first YUV images, N being a positive integer greater than 1; extracting a luma image and a chroma image corresponding to each of the N first YUV images to obtain N luma images and N chroma images; selecting, based on sharpness of each of the N luma images, a reference luma image from the N luma images; performing image registration on remaining images in the N luma images except the reference luma image and the reference luma image to obtain an offset of each of the remaining images relative to the reference luma image; fusing, based on the offset of each of the remaining images relative to the reference luma image, the N luma images through a trained neural network to obtain a target luma image, the target luma image having a higher resolution than the N first YUV images; performing, based on a reference chroma frame, interpolation processing on the N chroma images to obtain a target chroma image, the reference chroma frame being a chroma image associated with the reference luma image in the N chroma images, and the target chroma image having a higher resolution than the N first YUV images; and synthesizing the target luma image and the target chroma image to obtain a target YUV image.
 2. The method of claim 1, wherein selecting, based on the sharpness of each of the N luma images, the reference luma image from the N luma images comprises: calculating a sharpness value of each of the N luma images; and determining a luma image with the highest sharpness value as the reference luma image.
 3. The method of claim 2, wherein calculating the sharpness value of each of the N luma images comprises: segmenting, a luma image to be calculated, into two or more sub-image areas, the luma image to be calculated being any one of the N luma images; obtaining a luma value of each pixel in the luma image to be calculated; determining a maximum luma value and a minimum luma value in each of the sub-image areas based on the luma value of each pixel; and performing, based on the maximum luma value and the minimum luma value in each of the sub-image areas, sharpness estimation on the luma image to be calculated through a preset sharpness reference model to obtain a sharpness value of the luma image to be calculated.
 4. The method of claim 1, wherein performing the image registration on remaining images in the N luma images except the reference luma image and the reference luma image to obtain an offset of each of the remaining images relative to the reference luma image comprises: performing feature point detection on a luma image to be matched and the reference luma image separately, the luma image to be matched being any one of the remaining images; calculating a Euclidean distance between each feature point of the luma image to be matched and a corresponding feature point of the reference luma image; and solving, based on the Euclidean distance between each feature point of the luma image to be matched and the corresponding feature point of the reference luma image, a homography matrix of the luma image to be matched to the reference luma image to obtain an offset of the luma image to be matched to the reference luma image.
 5. The method of claim 4, wherein performing the feature point detection on the luma image to be matched and the reference luma image separately comprises: performing the feature point detection on the luma image to be matched and the reference luma image separately based on a preset scale-invariant feature transform algorithm.
 6. The method of claim 4, wherein calculating the Euclidean distance between each feature point of the luma image to be matched and the corresponding feature point of the reference luma image comprises: establishing a gradient histogram of each feature point of the luma image to be matched, and a gradient histogram of the corresponding feature point of the reference luma image; generating a feature vector of each feature point of the luma image to be matched based on the gradient histogram of each feature point of the luma image to be matched, and a feature vector of the corresponding feature point of the reference luma image based on the gradient histogram of the corresponding feature point of the reference luma image; and calculating the Euclidean distance between each feature point of the luma image to be matched and the corresponding feature point of the reference luma image based on the feature vector of each feature point of the luma image to be matched and the feature vector of the corresponding feature point of the reference luma image.
 7. The method of claim 1, wherein the neural network comprises a feature extract layer, a feature transform layer, an upsample layer, and a fusion layer, the feature extract layer is configured to extract linear features of each of the N luma images, the feature transform layer is configured to convert the linear features of each of the N luma images to obtain non-linear features of each of the N luma images, the upsample layer is configured to perform interpolation processing on an image output by the feature transform layer to upsample the image to a preset size, and the fusion layer is configured to fuse the image upsampled to obtain the higher resolution target luma image.
 8. The method of claim 1, wherein the target luma image has the same resolution with the target chroma image.
 9. A mobile terminal, comprising: a storage device for storing a computer program; a processor, configured to execute the computer program, to carry out: obtaining continuous N first YUV images, N being a positive integer greater than 1; extracting a luma image and a chroma image corresponding to each of the N first YUV images to obtain N luma images and N chroma images; selecting, based on sharpness of each of the N luma images, a reference luma image from the N luma images; performing image registration on remaining images in the N luma images except the reference luma image and the reference luma image to obtain an offset of each of the remaining images relative to the reference luma image; fusing, based on the offset of each of the remaining images relative to the reference luma image, the N luma images through a trained neural network to obtain a target luma image, the target luma image having a higher resolution than the N first YUV images; performing, based on a reference chroma frame, interpolation processing on the N chroma images to obtain a target chroma image, the reference chroma frame being a chroma image associated with the reference luma image in the N chroma images, and the target chroma image having a higher resolution than the N first YUV images; and synthesizing the target luma image and the target chroma image to obtain a target YUV image.
 10. The mobile terminal of claim 9, wherein selecting, based on the sharpness of each of the N luma images, the reference luma image from the N luma images comprises: calculating a sharpness value of each of the N luma images; and determining a luma image with the highest sharpness value as the reference luma image.
 11. The mobile terminal of claim 10, wherein calculating the sharpness value of each of the N luma images comprises: segmenting, a luma image to be calculated, into two or more sub-image areas, the luma image to be calculated being any one of the N luma images; obtaining a luma value of each pixel in the luma image to be calculated; determining a maximum luma value and a minimum luma value in each of the sub-image areas based on the luma value of each pixel; and performing, based on the maximum luma value and the minimum luma value in each of the sub-image areas, sharpness estimation on the luma image to be calculated through a preset sharpness reference model to obtain a sharpness value of the luma image to be calculated.
 12. The mobile terminal of claim 9, wherein performing the image registration on remaining images in the N luma images except the reference luma image and the reference luma image to obtain an offset of each of the remaining images relative to the reference luma image comprises: performing feature point detection on a luma image to be matched and the reference luma image separately, the luma image to be matched being any one of the remaining images; calculating a Euclidean distance between each feature point of the luma image to be matched and a corresponding feature point of the reference luma image; and solving, based on the Euclidean distance between each feature point of the luma image to be matched and the corresponding feature point of the reference luma image, a homography matrix of the luma image to be matched to the reference luma image to obtain an offset of the luma image to be matched to the reference luma image.
 13. The mobile terminal of claim 12, wherein performing the feature point detection on the luma image to be matched and the reference luma image separately comprises: performing the feature point detection on the luma image to be matched and the reference luma image separately based on a preset scale-invariant feature transform algorithm.
 14. The mobile terminal of claim 12, wherein calculating the Euclidean distance between each feature point of the luma image to be matched and the corresponding feature point of the reference luma image comprises: establishing a gradient histogram of each feature point of the luma image to be matched, and a gradient histogram of the corresponding feature point of the reference luma image; generating a feature vector of each feature point of the luma image to be matched based on the gradient histogram of each feature point of the luma image to be matched, and a feature vector of the corresponding feature point of the reference luma image based on the gradient histogram of the corresponding feature point of the reference luma image; and calculating the Euclidean distance between each feature point of the luma image to be matched and the corresponding feature point of the reference luma image based on the feature vector of each feature point of the luma image to be matched and the feature vector of the corresponding feature point of the reference luma image.
 15. A non-transitory computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, an image super-resolution reconstruction method is implemented, the method comprising: obtaining continuous N first YUV images, N being a positive integer greater than 1; extracting a luma image and a chroma image corresponding to each of the N first YUV images to obtain N luma images and N chroma images; selecting, based on sharpness of each of the N luma images, a reference luma image from the N luma images; performing image registration on remaining images in the N luma images except the reference luma image and the reference luma image to obtain an offset of each of the remaining images relative to the reference luma image; fusing, based on the offset of each of the remaining images relative to the reference luma image, the N luma images through a trained neural network to obtain a target luma image, the target luma image having a higher resolution than the N first YUV images; performing, based on a reference chroma frame, interpolation processing on the N chroma images to obtain a target chroma image, the reference chroma frame being a chroma image associated with the reference luma image in the N chroma images, and the target chroma image having a higher resolution than the N first YUV images; and synthesizing the target luma image and the target chroma image to obtain a target YUV image.
 16. The non-transitory computer-readable storage medium of claim 15, wherein selecting, based on the sharpness of each of the N luma images, the reference luma image from the N luma images comprises: calculating a sharpness value of each of the N luma images; and determining a luma image with the highest sharpness value as the reference luma image.
 17. The non-transitory computer-readable storage medium of claim 16, wherein calculating the sharpness value of each of the N luma images comprises: segmenting, a luma image to be calculated, into two or more sub-image areas, the luma image to be calculated being any one of the N luma images; obtaining a luma value of each pixel in the luma image to be calculated; determining a maximum luma value and a minimum luma value in each of the sub-image areas based on the luma value of each pixel; and performing, based on the maximum luma value and the minimum luma value in each of the sub-image areas, sharpness estimation on the luma image to be calculated through a preset sharpness reference model to obtain a sharpness value of the luma image to be calculated.
 18. The non-transitory computer-readable storage medium of claim 15, wherein performing the image registration on remaining images in the N luma images except the reference luma image and the reference luma image to obtain an offset of each of the remaining images relative to the reference luma image comprises: performing feature point detection on a luma image to be matched and the reference luma image separately, the luma image to be matched being any one of the remaining images; calculating a Euclidean distance between each feature point of the luma image to be matched and a corresponding feature point of the reference luma image; and solving, based on the Euclidean distance between each feature point of the luma image to be matched and the corresponding feature point of the reference luma image, a homography matrix of the luma image to be matched to the reference luma image to obtain an offset of the luma image to be matched to the reference luma image.
 19. The non-transitory computer-readable storage medium of claim 18, wherein performing the feature point detection on the luma image to be matched and the reference luma image separately comprises: performing the feature point detection on the luma image to be matched and the reference luma image separately based on a preset scale-invariant feature transform algorithm.
 20. The non-transitory computer-readable storage medium of claim 18, wherein calculating the Euclidean distance between each feature point of the luma image to be matched and the corresponding feature point of the reference luma image comprises: establishing a gradient histogram of each feature point of the luma image to be matched, and a gradient histogram of the corresponding feature point of the reference luma image; generating a feature vector of each feature point of the luma image to be matched based on the gradient histogram of each feature point of the luma image to be matched, and a feature vector of the corresponding feature point of the reference luma image based on the gradient histogram of the corresponding feature point of the reference luma image; and calculating the Euclidean distance between each feature point of the luma image to be matched and the corresponding feature point of the reference luma image based on the feature vector of each feature point of the luma image to be matched and the feature vector of the corresponding feature point of the reference luma image. 